package com.Brave.manager.Demo04;

import java.util.concurrent.ArrayBlockingQueue;

public class FoodieS extends Thread {
    private ArrayBlockingQueue<String> bd;

    public FoodieS(ArrayBlockingQueue<String> bd){
        this.bd = bd;
    }

    @Override
    public void run() {
        try {
            String take = bd.take();
            System.out.println("吃货讲" + take + "拿出来吃");
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }
}
